<?php 
	include_once 'thuvienham.php';
	include_once 'nguoidungloai_db.php';

	class nguoidungloai_bs 
	{
		//------------------Fields [3]------------------
			// #0
		private $MaLoaiNguoiDung = "";
		public function SetMaLoaiNguoiDung($MaLoaiNguoiDung) { $this->MaLoaiNguoiDung = $MaLoaiNguoiDung; }
		public function GetMaLoaiNguoiDung() { return $this->MaLoaiNguoiDung; }
			// #1
		private $TenLoaiNguoiDung = "";
		public function SetTenLoaiNguoiDung($TenLoaiNguoiDung) { $this->TenLoaiNguoiDung = $TenLoaiNguoiDung; }
		public function GetTenLoaiNguoiDung() { return $this->TenLoaiNguoiDung; }
			// #2
		private $ChuThich = "";
		public function SetChuThich($ChuThich) { $this->ChuThich = $ChuThich; }
		public function GetChuThich() { return $this->ChuThich; }

		//------------------Method------------------
		public function Them()
		{
			$data = new nguoidungloai_db();
			return $data->Them($this->MaLoaiNguoiDung, $this->TenLoaiNguoiDung, $this->ChuThich);
		}

		public function Xoa()
		{
			$data = new nguoidungloai_db();
			return $data->Xoa($this->MaLoaiNguoiDung);
		}

		public function CapNhat()
		{
			$data = new nguoidungloai_db();
			return $data->CapNhat($this->MaLoaiNguoiDung, $this->TenLoaiNguoiDung, $this->ChuThich);
		}

		public function LayDanhSach()
		{
			$data = new nguoidungloai_db();
			return $data->LayDanhSach($this->MaLoaiNguoiDung, $this->TenLoaiNguoiDung, $this->ChuThich);
		}

	}

